package com.heyou.modules.member.feign;

import com.heyou.common.utils.Result;
import com.heyou.modules.member.dto.CouponDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient("heyou-coupon")
public interface ICouponFeignService {

    @GetMapping("/coupon/coupon/member/coupons")
    @Operation(summary = "获取会员的优惠券信息")
    Result<List<CouponDTO>> memberCoupons(@Parameter(hidden = true) @RequestParam Map<String, Object> params);
}
